package com.work.cos.service.interfc.pr;

import com.work.cos.domain.entity.pr.PrCartProductEntity;
import com.work.cos.service.interfc.IBaseService;

public interface IPrCartProductService extends IBaseService<PrCartProductEntity>{
	
	/**
	 * 
	 * @param userId
	 * @param productId
	 * @return
	 */
	PrCartProductEntity findCartProduct(Long userId, Long productId);
	
	/**
	 * 
	 * @param entity
	 * @return
	 */
	boolean updateNumer(PrCartProductEntity entity);
	
	
	/**
	 * 
	 * @param entity
	 * @return
	 */
	boolean deleteByCheck(PrCartProductEntity entity);
}
